﻿using System.ServiceModel;

namespace Xray.Common
{
    /// <summary>
    /// service to update the component model
    /// </summary>
    [ServiceContract()]
    public interface IContainerXrayService
    {

        /// <summary>
        /// Update the component model
        /// </summary>
        /// <param name="model">the entire current model (not a delta)</param>
        [OperationContract()]
        void Update(Model model);

        /// <summary>
        /// Clears the current model. allowing to start from scratch
        /// </summary>
        [OperationContract()]
        void ClearModel();
    }
}